package com.cn.ycy.aop.xml;

import org.aspectj.lang.JoinPoint;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Component;

/**
 * 配置文件 演示aop
 */
@Component
public class AOPXMLService {

  Logger logger = LoggerFactory.getLogger(AOPXMLService.class);

  /**
   *
   * @param joinPoint 这个地方封装了目标 和 入参
   */
  public void beforeMethod(JoinPoint joinPoint) {

    logger.info("beforeMethod");
  }

}
